<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.5)" /> 
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.5)" />
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/checksql.asp"-->
<%call keywords_pubulic(Web_keywords,Web_description,Web_title,"")%>
<link href="css/css.css" rel="stylesheet">
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/custom.js"></script>
<script language="javascript">
function trim(str)
{
	return str.replace(/(^\s*)|(\s*$)/g, "");
} 
function ismobile(strmobile) 
{ 
if (strmobile.search(/^0?1[358]\d{9}$/)!=-1)
return 1; 
}
function chkform(form)
{
	if (document.getElementById("form1").username.value==""||document.getElementById("form1").username.value.replace(/ /g,'').length==0||document.getElementById("form1").username.value=="姓名")
	{
		alert("姓名必须填写！")
		document.getElementById("form1").username.value="";
		document.getElementById("form1").username.focus();
		return false;
	}
	if (document.getElementById("form1").phone.value==""||document.getElementById("form1").phone.value.replace(/ /g,'').length==0||document.getElementById("form1").phone.value=="手机")
	{
		alert("手机必须填写！")
		document.getElementById("form1").phone.value="";
		document.getElementById("form1").phone.focus();
		return false;
	}
	if(document.getElementById("form1").phone.value!=""&&ismobile(trim(document.getElementById("form1").phone.value))!=1 )
	{
		alert("非法的手机号码，请认真填写!")
		document.getElementById("form1").phone.focus();
		return false;
	}
	               
	stm_clicki('send', 'event', '0元预约设计', 'click', '0元预约设计', 1);
	stm_clicki('send', 'event', {
		customActionId: 1,
		customActionLabel1: $('input[name="phone"]').val(),
		customActionLabel2: $('input[name="username"]').val(),
		customActionLabel3: '0元预约设计姓名',
		customActionLabel4: '0元预约设计姓名',
		customActionValue1: 1
	});
	
	form.action="inc/messagesave.asp";
	form.submit();
}
function chkform2(form)
{
	if (document.getElementById("form2").mobile.value==""||document.getElementById("form2").mobile.value.replace(/ /g,'').length==0||document.getElementById("form2").mobile.value=="请输入手机号")
	{
		alert("手机号码必须填写！")
		document.getElementById("form2").mobile.value="";
		document.getElementById("form2").mobile.focus();
		return false;
	}
	if(document.getElementById("form2").mobile.value!=""&&ismobile(trim(document.getElementById("form2").mobile.value))!=1 )
	{
		alert("非法的手机号码，请认真填写!")
		document.getElementById("form2").mobile.focus();
		return false;
	}
	
	stm_clicki('send', 'event', '0元预约', 'click', '0元预约', 1);
	stm_clicki('send', 'event', {
		customActionId: 1,
		customActionLabel1: $('input[name="mobile"]').val(),
		customActionLabel2: '0元预约',
		customActionLabel3: '0元预约',
		customActionLabel4: '0元预约',
		customActionValue1: 1
	});
	 
	form.action="inc/messagesave1.asp";
	form.submit();
}

 (function(a, e, f, g, b, c, d) {a.ClickiTrackerName = b;
 a[b] = a[b] || function() {(a[b].queue = a[b].queue || []).push(arguments)};
 a[b].start = +new Date; c = e.createElement(f); d = e.getElementsByTagName(f)[0];
 c.async = 1; c.src = g; d.parentNode.insertBefore(c, d)
 })(window, document, 'script', ('https:' == document.location.protocol ? 'https://stm-collect' : 'http://stm-cdn') + '.cn.miaozhen.com/clicki.min.js', 'stm_clicki');
 stm_clicki('create', 'dc-108', 'auto');
 stm_clicki('send', 'pageview');
 
 stm_clicki('require','heatmap', ('https:'==document.location.protocol?'https://stm-collect':'http://stm-cdn')+'.cn.miaozhen.com/plugins/heatmap.js');
 stm_clicki('heatmap:on',5);
 
</script>
</head>

<body>
<div class="w c">
<img src="images/p1.jpg" >
<div class="H20" id="search"></div>
<img src="images/p2.jpg" >
<div class="H20"></div>
</div>
<%
shijian="2016/12/8"
if DateDiff("d", shijian,date()) mod 5=0 Then 
 jishu=330
elseif DateDiff("d", shijian,date()) mod 5=1 Then 
 jishu=300
elseif DateDiff("d", shijian,date()) mod 5=2 Then 
 jishu=350
elseif DateDiff("d", shijian,date()) mod 5=3 Then 
 jishu=320
elseif DateDiff("d", shijian,date()) mod 5=4 Then 
 jishu=290
end if

Set rs=Server.CreateObject("ADODB.RecordSet")
strsql="select zongshu,dangri,time from [Infor] where Web_ID=1"
rs.Open strsql,conn,1,3
if not (rs.bof and rs.eof) then
	if rs("dangri")>1 and DateDiff("d",rs("time"),date())=1 Then 
	   rs("dangri")=1
	else
	   rs("dangri")=rs("dangri")+1
	end if
	rs("time")=date()
rs.update
    zongshu=rs("zongshu")
	dangri=rs("dangri")
end if
call rsclose(rs)
%>
<div class="mod-inner">
<div class="w2">
<div class="hk c">
已有<span><%=zongshu%></span>位客户预约<br>
您将是今日第<span class="kuang"><%=dangri+jishu%></span>位
</div>
<div class="H10"></div>
 <form action="" method="post"  name="form1" id="form1">
   <div class="inputs_k"><input type="text" name="username" value="姓名" class="inputs" onblur="if(value==''){value=defaultValue;}" onfocus="if(value==defaultValue){value='';}"></div>
   <div class="H10"></div>
   <div class="inputs_k1"><input type="text" name="phone" value="手机" class="inputs" onblur="if(value==''){value=defaultValue;}" onfocus="if(value==defaultValue){value='';}"></div>
   <div class="H25"></div>
   <input class="anniu" type="button" value="0元预约设计" onClick="chkform(this.form)" >
 </form>
 <div class="H25"></div>
 <div class="l chennuo">我们承诺：</div>
 <div class="l chennuo1">
 我们将以专业团队、优质服务、放心品质，竭诚为您服务。<br>
 <span>免费预约设计服务，绝不产生任何费用。</span><br>
 为了您的利益以及我们的口碑，您的隐私将被严格保密。
 </div>
</div>
</div>

<div class="H30"></div>

<div class="w c">
<img src="images/p3.jpg" >
<a href="?#search"><img src="images/hong_anniu.jpg" ></a>
<img src="images/bj.jpg" >
<img src="images/p4.jpg" >
<a href="?#search"><img src="images/hei_anniu.jpg" ></a>
<img src="images/bj.jpg" >
<img src="images/p5.jpg" >
<a href="?#search"><img src="images/hong_anniu.jpg" ></a>
<img src="images/bj.jpg" >
<img src="images/p6.jpg" >
<a href="?#search"><img src="images/hei_anniu.jpg" ></a>
<img src="images/bj.jpg" >
<img src="images/p7.jpg" >
<a href="?#search"><img src="images/hong_anniu.jpg" ></a>
<img src="images/p8.jpg" >
<img src="images/p9.jpg" >
<img src="images/p10.jpg" >
<img src="images/p11.jpg" >
<a href="?#search"><img src="images/p12.jpg" ></a>
</div>
<div class="c foot">Copyright © 2010 曲美家居. All Rights Reserved  京ICP备05013501号</div>
<div class="H50"></div>

<div class="search w" >
  <div class="w1 mod-inner c">
   <div class="search_k">
   <form action="" method="post"  name="form2" id="form2">
    <div class="search1"><input type="text" name="mobile" value="请输入手机号" class="inputs1" onblur="if(value==''){value=defaultValue;}" onfocus="if(value==defaultValue){value='';}"></div>
    <div class="search2"><input class="anniu1" type="button" value="0元预约" onClick="chkform2(this.form)"></div>
 </form>
  </div>
  </div>
</div>
<script type="text/javascript" charset="utf-8" src="http://lead.soperson.com/20000651/10051974.js"></script>
</body>
</html>